#pragma once

class CommandUI : public Singleton<CommandUI>
{
	Dialog* m_dialog;
	void CheckboxProc(Checkbox<CommandUI>*, ui32);
	Checkbox<CommandUI>* pTerrain, *pTexture, *pShader;
	void TexQuadProc(TextureQuad<CommandUI>*);
public:
	CommandUI();
	bool TextureEnabled() { return pTexture->m_state > 0; }
	bool TerrainEnabled() { return pTerrain->m_state > 0; }
	bool ShadingEnabled() { return pShader->m_state > 0; }
	void Toggle() { m_dialog->m_visible = !m_dialog->m_visible; }
	void SetActiveTexture(std::string szTexture);
};

#define sCommUI (*CommandUI::GetInstance())